package com.fz.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * Created by lk666666 on 2017-09-05.
 *
 */
@Controller
public class StudentController {
    @RequestMapping("/s") @ResponseBody
    public void aa(){
        System.out.println("这是我的第一个链接");
    }
   @RequestMapping("/bb") @ResponseBody
    public void bb(HttpServletResponse resp) throws IOException {
        resp.setContentType("text/html; charset=utf-8");
       PrintWriter out=resp.getWriter();
       out.print("你好bb");
    }
    @RequestMapping("") @ResponseBody
    public void cc(PrintWriter out){
     out.print("这是穿残OUtzhijieshuchu");
    }
    @RequestMapping(value = "dd.do") @ResponseBody
    public void dd(){
        System.out.println("这是朱姐的房事");
    }
}
